<template>
	<view class="page">
		<view class="brand-header"></view>
		<view class="content card fade-in-up">
			<image class="logo" src="/static/logo.png"></image>
			<view class="text-area">
				<text class="title">{{title}}</text>
			</view>
			<view class="actions">
				<button class="btn btn-primary btn-block btn-pill" @click="go('/pages/mbti/index')">MBTI 测评</button>
				<button class="btn btn-ghost btn-block btn-pill" @click="go('/pages/tarot/index')">塔罗占卜</button>
				<button class="btn btn-ghost btn-block btn-pill" @click="go('/pages/history/index')">历史记录</button>
				<button class="btn btn-ghost btn-block btn-pill" @click="go('/pages/settings/index')">设置</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			go(url) {
				uni.navigateTo({ url })
			}
		}
	}
</script>

<style lang="scss">
	.page { padding: 0 32rpx 32rpx; }
	.content {
		margin-top: -80rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 32rpx 24rpx 40rpx;
	}
	.logo { height: 200rpx; width: 200rpx; margin: 24rpx auto; }
	.text-area { display: flex; justify-content: center; margin-bottom: 24rpx; }
	.title { font-size: 40rpx; color: $brand-color-heading; }
	.actions { display: flex; flex-direction: column; gap: 16rpx; width: 76%; margin-top: 8rpx; }
</style>
